package com.subject.shuati.domain.covert;

import com.subject.shuati.domain.entity.SubjectInfoBo;
import com.subject.shuati.domain.entity.SubjectLikedBo;
import com.subject.shuati.infra.basic.entity.SubjectInfo;
import com.subject.shuati.infra.basic.entity.SubjectLiked;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 实体类与Bo之间的转换
 */
@Mapper
public interface SubjectLikedConverter {

    SubjectLikedConverter INSTANCE = Mappers.getMapper(SubjectLikedConverter.class);

    /**
     * BO转实体类
     * @param subjectLikedBo
     * @return
     */
    SubjectLiked BoConverterToEntity(SubjectLikedBo subjectLikedBo);
    /**
     * 实体类集合转bo集合
     * @param subjectLikedList
     * @return
     */
    List<SubjectLikedBo> BoConverterToInfoList(List<SubjectLiked> subjectLikedList);
}
